import { createStore }  from 'vuex'

export default createStore({
    state: {
        status: false,
        tcpStatus: false,
        overTcpStatus: false,
    },
    getters: {
        // 定义获取器
        getStatus: (state) => state.status,
        getTcpStatus: (state) => state.tcpStatus,
    },
    mutations: {
        setStatus (state, status) {
            state.status = status
        }
    },
    actions: {

    }
})